﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;

namespace TreeBuilder
{
	public interface IMenuChangeableObject
	{
		Dictionary<string, object> MakeSnapshot();
		void RestoreSnapshop(Dictionary<string, object> snapshot);
		bool DetectChanges(Dictionary<string, object> snapshot);

		event Action<object, MenuChangesEventArgs> MenuOpened;
		event Action<object, MenuChangesEventArgs> MenuClosed;
	}
}
